// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------
import Layout from '@/layout'
import { roterPre } from '@/settings'

const enterpriseRouter =
  {
    path: `${roterPre}/enterprise`,
    name: 'enterprise',
    meta: {
      title: '官网'
    },
    alwaysShow: true,
    component: Layout,
    redirect: `${roterPre}/enterprise`,
    children: [
      {
        path: 'article',
        name: 'article',
        meta: {
          title: '热文推荐'
          // noCache: true
        },
        // redirect: 'noRedirect',
        component: () => import('@/views/enterprise/article/index')
      },
      {
        path: 'video',
        name: 'video',
        meta: {
          title: '视频'
          // noCache: true
        },
        // redirect: 'noRedirect',
        component: () => import('@/views/enterprise/video/index')
      },
      {
        path: 'Column',
        name: 'Column',
        meta: {
          title: '栏目管理'
          // noCache: true
        },
        // redirect: 'noRedirect',
        component: () => import('@/views/enterprise/Column/index')
      },
      {
        path: 'Content',
        name: 'Content',
        meta: {
          title: '内容管理'
          // noCache: true
        },
        // redirect: 'noRedirect',
        component: () => import('@/views/enterprise/Content/index')
      }
    ]
  }
export default enterpriseRouter
